<?php



class MlmArticleMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.MlmArticleMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('mlm_article');
		$tMap->setPhpName('MlmArticle');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ARTICLE_ID', 'ArticleId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('ARTICLE_TITLE', 'ArticleTitle', 'string', CreoleTypes::LONGVARCHAR, true, null);

		$tMap->addColumn('ARTICLE_TYPE', 'ArticleType', 'string', CreoleTypes::VARCHAR, true, 25);

		$tMap->addColumn('ARTICLE_CATEGORY', 'ArticleCategory', 'string', CreoleTypes::LONGVARCHAR, true, null);

		$tMap->addColumn('ARTICLE_CONTENT', 'ArticleContent', 'string', CreoleTypes::LONGVARCHAR, true, null);

		$tMap->addColumn('READ_QTY', 'ReadQty', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('PUBLISER_NAME', 'PubliserName', 'string', CreoleTypes::VARCHAR, true, 255);

		$tMap->addColumn('STATUS_CODE', 'StatusCode', 'string', CreoleTypes::VARCHAR, true, 10);

		$tMap->addColumn('CREATED_BY', 'CreatedBy', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('CREATED_ON', 'CreatedOn', 'int', CreoleTypes::TIMESTAMP, true, null);

		$tMap->addColumn('UPDATED_BY', 'UpdatedBy', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('UPDATED_ON', 'UpdatedOn', 'int', CreoleTypes::TIMESTAMP, true, null);

	} 
} 